projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0e97e8
)
Change `cargo test --doc` test to match stdout
author
Mikkel Kroman
<mk@uplink.io>
Mon, 16 May 2016 18:56:40 +0000
(20:56 +0200)
committer
Mikkel Kroman
<mk@uplink.io>
Mon, 16 May 2016 18:56:40 +0000
(20:56 +0200)
tests/test_cargo_test.rs
patch
|
blob
|
history
diff --git
a/tests/test_cargo_test.rs
b/tests/test_cargo_test.rs
index 22b8241494f1fe62cab14e88059ceede2e5a36d7..782692a364c7c9422c2aa01ac843431ebdd887da 100644
(file)
--- a/
tests/test_cargo_test.rs
+++ b/
tests/test_cargo_test.rs
@@
-2071,5
+2071,14
@@
test!(only_test_docs {
p.build();
assert_that(p.cargo("test").arg("--doc"),
- execs().with_status(0));
+ execs().with_status(0).with_stdout(&format!("\
+[COMPILING] foo v0.0.1 ([..])
+[DOCTEST] foo
+
+running 1 test
+test bar_0 ... ok
+
+test result: ok.[..]
+")));
});
+